package de.koller.million.card.engine.item;

public enum ItemSlot {
	//42.8
	Head(		"Kopf",		 4.0 ),
	Neck(		"Kette",	 2.0 ),
	Shoulder(	"Schulter",  3.2 ),
	Chest(		"Brust",	 4.5 ),
	Wrist(		"Armgelenk", 1.0 ),
	Waist(		"Gürtel",	 1.5 ),
	Hand(		"Hand",		 2.8 ),
	Ring(		"Ring",		 2.0 ),
	Leg(		"Beine",	 4.5 ),
	Feet(		"Füße",		 3.0 ),
	Weapon(		"Waffe",	 8.0 ),
	Offhand(	"Nebenhand", 2.3 ),
	Amulet(		"Amulet",	 2.0 ),
	Relikt(		"Relikt",	 2.0 );
	
	private static double fullEquipt = -1;
	
	public double factor;
	public String displayName;

	private ItemSlot( String name, double factor ) {
		this.displayName = name;
		this.factor = factor;
	}
	
	public static double fullEquiptFactor() {
		if( fullEquipt == -1 ) {
			fullEquipt = 0;
			for( int i = 0; i < values().length; i++ ) 
				fullEquipt += values()[i].factor;
		}
		return fullEquipt;
	}
	
}
